package com.chentongwei.entity;

import java.io.Serializable;

/**
 * @author TongWei.Chen 2018-3-1 17:06:54
 * @Description: 统一返回给客户端的结果对象
 */
public class Result implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 状态 0：失败 1：成功
     */
    private int code;
    /**
     * 提示消息
     */
    private String msg;
    /**
     * 返回内容
     */
    private Object data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
